<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>提示</title>
    <link rel="stylesheet" href="static/loading.css">
    <script src="static/jquery.js"></script>
</head>

<body>
    <div class="prompt-con">
        <img src="static/Group3@2x.jpg" alt="">
        <ul class="browser-list">
            <li link='https://www.google.cn/chrome/'>
                <i class="iconfont">&#xe6cf;</i>
                <em>谷歌浏览器</em>
            </li>
            <li link='https://browser.360.cn/ee/'>
                <i class="iconfont">&#xe6cf;</i>
                <em>360浏览器</em>
            </li>
            <li link='http://www.firefox.com.cn/'>
                <i class="iconfont">&#xe6cf;</i>
                <em>火狐浏览器</em>
            </li>
        </ul>
        <a href="javascript:void(0);" class="down-btn">下载</a>
    </div>
</body>
<script>
    var downLink = '';

    function checkBrowser(index) {
        $('.browser-list>li>i').html('&#xe6cf;');
        $('.browser-list>li').css('color', '');
        $('.browser-list>li').eq(index).children('i').html('&#xe644;');
        $('.browser-list>li').eq(index).css({
            'color': '#2d8dfa'
        });
        downLink = $('.browser-list>li').eq(index).attr('link');
    }
    checkBrowser(0);
    $('.browser-list>li').on('click', function() {
        var index = $(this).index();
        checkBrowser(index);
    });
    $('.down-btn').on('click', function() {
        window.open(downLink, 'top');
    });
</script>

</html>